package model;

public class LocalUser {
	
	private String username;
	private String addr;
	private boolean bind;

	public LocalUser(String login) {
		this.username = login;
		this.addr=null;
		this.bind = false;
	}
	
	public String getName () {
		return this.username;
	}
	
	public boolean getBind() {
		return this.bind;
	}
	
	public String getAddr () {
		return this.addr;
	}
	
	public void setAddr (String adr){
		if (!bind){
		this.addr=adr;
		this.bind=true;
		}
	}
	
	public String getLogin(){
		if (bind){
			return (username+"@"+addr);
		}
		else
			return null;
	}

}
